﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EBookStore.Books;

namespace EBookStore.Orders
{
    /// <summary>
    /// struct representing amount of books
    /// </summary>
    public class BookAndAmount
    {
        /// <summary>
        /// Book
        /// </summary>
        public Books.Book Book { get; set; }
     
        /// <summary>
        /// Amount
        /// </summary>
        public int Amount { get; set; }



        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="book"></param>
        /// <param name="amount"></param>
        public BookAndAmount(Book book, int amount)
        {
            this.Book = book;
            this.Amount = amount;
        }

    }
}
